package com.shiminghui;

import java.util.Scanner;

public class ZhiShu {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean flag = true;
//        System.out.println("输入一个数");
//        int i = scanner.nextInt();
        int count=0;
        for (int i = 101; i <=200 ; i++) {
            if (isSu(i)){
                count++;
                System.out.print(i+" ");
            }
        }
        System.out.println();
        System.out.println(count);

    }


    public static boolean isSu(int i){
        boolean flag = true;
        for (int j = 2; j <= Math.sqrt(i); j++) {
            if (i % j == 0) {
                flag = false;
                break;
            }
        }
        return flag;
    }

}
